﻿using Domain.Base;
using DtoFw.Enum;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Domain.Entity
{
    ///<summary>
    ///字典
    ///</summary>
    [SugarTable("system_dic")]
    [DB(EnumDatabase.Mysql, Cache = false)]
    public  class MainDicEntity: BaseEntity
    {

        /// <summary>
        /// 父节点
        /// </summary>
        [SugarColumn(ColumnName = "ParentId")]
        public System.Int64? ParentId { get; set; }


        /// <summary>
        /// 节点Code
        /// </summary>
        [SugarColumn(ColumnName = "Code")]
        public string Code { get; set; }

        /// <summary>
        /// 是否为叶子节点
        /// </summary>
        [SugarColumn(ColumnName = "ChildNode")]
        public bool ChildNode { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [SugarColumn(ColumnName = "Status")]
        public bool Status { get; set; }

        /// <summary>
        /// 字典名称
        /// </summary>
        [SugarColumn(ColumnName = "Name")]
        public System.String Name { get; set; }

        /// <summary>
        /// 拼音
        /// </summary>
        [SugarColumn(ColumnName = "Symbol")]
        public System.String Symbol { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(ColumnName = "Remark")]
        public System.String Remark { get; set; }

    }
}
